#ifndef VoERTCPObserverImpl_H
#define VoERTCPObserverImpl_H

#include "jni_api.h"
#include "voe_rtp_rtcp.h"

class VoERTCPObserverImpl : public webrtc::VoERTCPObserver, public JniCallbackGlobal
{
public:
	VoERTCPObserverImpl(void);
	~VoERTCPObserverImpl(void);

protected:	//JniCallbackBase
	virtual bool init_jni(JNIEnv* env);

public:
	virtual void OnApplicationDataReceived(
		const int channel, const unsigned char subType,
		const unsigned int name, const unsigned char* data,
		const unsigned short dataLengthInBytes);

protected:
	jmethodID m_mid_OnApplicationDataReceived;
};

#endif //!VoERTCPObserverImpl_H
